home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 591 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  930 b 

  1. Path: news.primenet.com!not-for-mail
  2. From: bri@primenet.com (Brian Gregory)
  3. Newsgroups: comp.std.c
  4. Subject: BoundsChecker and fgets fmalloc problems
  5. Date: 18 Mar 1996 12:42:01 -0700
  6. Organization: Primenet Services for the Internet
  7. Sender: root@primenet.com
  8. Message-ID: <4ikea9$gb5@nnrp1.news.primenet.com>
  9. X-Posted-By: ip16-021.phx.primenet.com
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. I am using Bounds Checker v2.5, and am having a problem finding a
  13. memory leak it is reporting...
  14.  
  15. Example:
  16.  
  17. fgets( szBuf, 799, fpIn );
  18.  
  19. szBuf is an 800 character buffer (pre-sized array)
  20. fpIn IS a valid pointer
  21. no memory is corrupt before the fgets line
  22. The application is a windows app, written in straight C with a large
  23. memory model.
  24.  
  25. Any help on resolving this recurrent problem, or just an indication
  26. that this is perhaps an erroneous error reported by Boundschecker
  27. would be greatly appreciated.
  28.  
  29. Thanks, 
  30. Brian Gregory
  31. bri@primenet.com
  32.  
  33.  
  34.  
  35.